import { Base } from '../base.js'

class Check extends Base {

	//图片鉴黄
	checkImage(image) {
		var params = {
			url: 'v1/check/img',
			path: image,
			name: 'image'
		}
		return this.upload(params);
	}

	//文本鉴黄
	checkMsg(msg) {
		var params = {
			url: 'v1/check/msg',
			type: 'post',
			data: {content:msg},
		}
		return this.request(params);
	}
}

export { Check };